package cn.sxt.yxl.user.service;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;

import cn.sxt.yxl.common.util.PageInfoUtil;
import cn.sxt.yxl.user.pojo.Admin;
import cn.sxt.yxl.user.pojo.Role;

public interface IUserService {
	
	Role findOneRoleSercice(Map<String,Object> map);
	
	JSONObject saveOneRoleService(Role role);
	
	JSONObject updateOneRoleService(Role role);
	
	JSONObject deleteOneRoleService(Role role);
	
	List<Role> findRoleListService(PageInfoUtil pageInfoUtil,Map<String,Object> map);
	
	
	Admin findOneAdminSercice(Map<String,Object> map);
	
	JSONObject saveOneAdminService(Admin admin);
	
	JSONObject updateOneAdminService(Admin admin);
	
	JSONObject deleteOneAdminService(Admin admin);
	
	List<Admin> findAdminListService(PageInfoUtil pageInfoUtil,Map<String,Object> map);
}
